﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RotovapPlatform.UI.Services
{
	/// <summary>
	/// 简单的事件总线，用于在不同视图之间传递事件
	/// </summary>
	public static class EventBus
	{
		/// <summary>
		/// 货架数据更新事件
		/// </summary>
		public static event EventHandler ShelfDataUpdated;

		/// <summary>
		/// 触发货架数据更新事件
		/// </summary>
		public static void NotifyShelfDataUpdated()
		{
			ShelfDataUpdated?.Invoke(null, EventArgs.Empty);
		}
	}
}
